package com.mowh.gof23.structural.patterns.proxy;

/**
 * @author mowh1gd
 * @create 2023/10/27 10:43
 */
public class Main {
    public static void main(String[] args) {
        PrinterProxy p = new PrinterProxy("Alice");
        System.out.println("现在的名字是" + p.getPrintName() + "。");
        p.setPrinterName("Bob");
        System.out.println("现在的名字是" + p.getPrintName() + "。");
        p.print("Hello, world.");
    }
}
